﻿
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BaseInfoMaster.master" CodeFile="EditRights.aspx.cs" 
Inherits="EditRights" CodeFileBaseClass="Frame.Pages.BaseInfomationEditBasePage" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="stylesheet"  href="../Content/Site.css" />

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="DemoTitle">
        权限管理
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
                <dx:ASPxGridView ID="gridView" runat="server" Width="100%" AutoGenerateColumns="False"
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" DataSourceID="LSMDSourceMain"
            KeyFieldName="RightID">
            <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <Columns>
            <dx:GridViewDataTextColumn name="t_RightID" FieldName="RightID" VisibleIndex="0" CellStyle-HorizontalAlign="Left" Caption="权限编码">
	<PropertiesTextEdit MaxLength="50" Native="true" Width="260px">
		<ValidationSettings CausesValidation="true">
			<RequiredField IsRequired="true" ErrorText="权限编码不可为空！">

			</RequiredField>
		</ValidationSettings>
	</PropertiesTextEdit><EditFormSettings CaptionLocation="Near">

	</EditFormSettings>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn name="t_RightName" FieldName="RightName" VisibleIndex="1" CellStyle-HorizontalAlign="Left" Caption="权限编码">
	<PropertiesTextEdit MaxLength="200" Native="true" Width="260px">
		<ValidationSettings CausesValidation="true">
			<RequiredField IsRequired="true" ErrorText="权限名称不可为空！">

			</RequiredField>
		</ValidationSettings>
	</PropertiesTextEdit><EditFormSettings CaptionLocation="Near">

	</EditFormSettings>
</dx:GridViewDataTextColumn><dx:GridViewDataMemoColumn name="t_Remark" FieldName="Remark" VisibleIndex="2" CellStyle-HorizontalAlign="Left" Caption="备注">
	<PropertiesMemoEdit Width="300px" Height="100px">

	</PropertiesMemoEdit><EditFormSettings CaptionLocation="Near">

	</EditFormSettings>
</dx:GridViewDataMemoColumn>
            </Columns>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
            <SettingsEditing EditFormColumnCount="1" />
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSourceMain" runat="server" EnableDelete="true"
            EnableUpdate="true" EnableInsert="true" ContextTypeName="DAL.CMSDALDataContext" TableName="BI_Rights" />
    </div>
</asp:Content>


